package com.home.truc.code.components;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class BackgorundPanel extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Image img;
	public void SetImage(Image i)
	{
		this.img = i;
		
		this.repaint();
	}
	public void paintComponent(Graphics g) {
        g.drawImage(img, 0, 0, this.getWidth(), this.getHeight(), this);
    }
}
